kexec: identify which cpu the kexec image is being executed on
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 Mar 2014 10:11:28 +0000 (11:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 10 Mar 2014 10:11:28 +0000 (11:11 +0100)
commit4509ada6ba1f09cc8f4fa23e009e7e5a963b6086
treeed21231494a038267b6a605255997932f8989d93
parenta14a2db700e930f96830d05e3ab3f886ac26c247
kexec: identify which cpu the kexec image is being executed on

A patch to this effect has been in XenServer for a little while, and has
proved to be a useful debugging point for servers which have different
behaviours depending when crashing on the non-bootstrap processor.

Moving the printk() from kexec_panic() to one_cpu_only() means that it will
only be printed for the cpu which wins the race along the kexec path.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
xen/common/kexec.c